import Vue from 'vue'
import Router from 'vue-router'
import chatlist from '@/components/chatlist'
import chatpanel from '@/components/chatpanel'
import ServiceText from '@/components/servicetext'
import ServiceList from '@/components/serviceList'
import ServicePanel from '@/components/servicepanel'
import TextBoard from '@/components/text'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/customer',
      name: 'customerlist',
      components: {
        coustomerlist:chatlist,
        coustomerpanel:chatpanel,
        coustomertext:TextBoard
      }
    },
    {
      path: '/service',
      name: 'servicelist',
      components: {
        ServiceList,
        ServiceText,
        ServicePanel
      }
    }
  ]
})
